﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using COMOSOFT.Class;

namespace COMOSOFT.Production.USC
{    
    public partial class UscInvoice : UserControl
    {
        string rptName = null;
        int Inv;
        ClassShare cls = new ClassShare("UscInvoice");
        public UscInvoice(string _rptName,int _Inv)
        {
            InitializeComponent();
            this.rptName = _rptName;
            this.Inv = _Inv;
        }

        public void LoadRpt()
        {
            switch (rptName)
            {
                case "rpt_InvLC":
                    Report.rpt_InvLC rptInv = new Report.rpt_InvLC(Inv);                    
                    documentViewer1.DocumentSource = rptInv;
                    break;
            }
        }
    }
}
